package com.example.communist_app_api.db.dao;

import com.example.communist_app_api.db.pojoDto.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentDao {

    List<Comment> getAllComment(Integer id);

    int insertComment(Comment comment);

    boolean deleteComment(Integer id);

    boolean UpdateLikeNum(Integer id);

    int insertNoComment(@Param("userId")Integer userId,@Param("articleId")Integer articleId,@Param("context")String context);

    boolean deleteLikeNum(Integer id);

    List<Comment> getUnmoderatdeComment();

    boolean reviewComments(@Param("userId")Integer userId,@Param("id")Integer id);

    List<Comment> getComment();
}
